<template>
  <div class="mend-list-container">
    <div class="searchBox">
      <Search :initData="initSearchData" @emitSearchData="getSearchData"></Search>
    </div>

    <div class="tableBox">
      <CustomTable :searchData="searchData"></CustomTable>
    </div>
  </div>
</template>

<script>
import { initUserInfo } from '@/unit/tool';
import CustomTable from './components/table';
import Search from './components/search';

export default {
  name: 'MendList',
  components: {
    CustomTable,
    Search,
  },
  data() {
    let moment = this.$Moment;
    return {
      userName: '',
      name: '',
      role: '',
      compId: '',
      initSearchData: {},
      searchData: {},
    };
  },
  methods: {
    getSearchData(value) {
      this.searchData = value;
    },
  },
  created() {
    initUserInfo(this);
  },
  mounted() {},
};
</script>

<style scoped="scoped">
.aa {
  color: red;
}
.searchBox {
  margin-bottom: 16px;
}

.tableBox {
  padding: 16px;
  background-color: #ffffff;
}
</style>
